how to display data from multiple tables in c